package com.xingxin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author mrLiu
 * @since 2021-01-08
 */
@TableName("sp_permission")
public class Permission implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "ps_id", type = IdType.AUTO)
    private Integer psId;

    /**
     * 权限名称
     */
    private String psName;

    /**
     * 父id
     */
    private Integer psPid;

    /**
     * 控制器
     */
    private String psC;

    /**
     * 操作方法
     */
    private String psA;

    /**
     * 权限等级
     */
    private String psLevel;


    public Integer getPsId() {
        return psId;
    }

    public void setPsId(Integer psId) {
        this.psId = psId;
    }

    public String getPsName() {
        return psName;
    }

    public void setPsName(String psName) {
        this.psName = psName;
    }

    public Integer getPsPid() {
        return psPid;
    }

    public void setPsPid(Integer psPid) {
        this.psPid = psPid;
    }

    public String getPsC() {
        return psC;
    }

    public void setPsC(String psC) {
        this.psC = psC;
    }

    public String getPsA() {
        return psA;
    }

    public void setPsA(String psA) {
        this.psA = psA;
    }

    public String getPsLevel() {
        return psLevel;
    }

    public void setPsLevel(String psLevel) {
        this.psLevel = psLevel;
    }

    @Override
    public String toString() {
        return "Permission{" +
        "psId=" + psId +
        ", psName=" + psName +
        ", psPid=" + psPid +
        ", psC=" + psC +
        ", psA=" + psA +
        ", psLevel=" + psLevel +
        "}";
    }
}
